package com.douwong.student.base;

import android.view.KeyEvent;

import com.douwong.student.application.BaseApplication;

/**
 * @autor yichao
 * @time 2017/5/1815:30
 * @des 课堂Activity的基类
 */

public abstract class ClassBaseActivity extends BaseActivity {
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN) {
            if (BaseApplication.isLoginClass) {
                return true;
            }
        }
        return super.onKeyDown(keyCode, event);


    }
}
